/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.sunspotworld.datawrappers;

/**
 * 
 * @author Douglas McClusky
 */
public abstract class DataWrapper {
    private static final String HEADER = "";
    
    /**
     * A method to track the size of this packet for keeping track of Radiogram space use
     * @return the space used by writeToRadiogram in bytes.
     */
    public abstract int getSize();
    
    /**
     * Transcribes the GPSPacket to a Radiogram
     * @param rg
     */
    public abstract void writeToBuffer(byte[] buffer, int index);
    
    /**
     * A String representation of this GPSPacket for writing records
     * @return the packet's information in comma-delimited format
     */
    public abstract String printEntryLine();
    
    /**
     * Return the constant header for the type of packet
     * @return the record header for this type of packet
     */
    public static String printRecordHeader() {
        return HEADER;
    }
    
    public abstract byte[] toByteArray();
}
